﻿using LuDragon.IService.System;
using LuDragon.Web.Areas.Admin.Filters;
using System.Web.Mvc;

namespace LuDragon.Web.Areas.Admin.Controllers
{
    /// <summary>
    /// 首页
    /// </summary>
    [CheckLogin]
    public class IndexController : BaseController
    {
        protected INavigationService _navService;
        public IndexController(INavigationService navService)
        {
            _navService = navService;
        }
        #region 视图     
        /// <summary>
        /// 首页
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            var navList = _navService.GetNavigationList(AdminInfo.RoleId);
            ViewBag.NavList = navList;
            return View();
        }
        #endregion     
    }
}